package com.xinjian.jianba.enity;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

public class UserRelationEntity implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 3576231173722929986L;
	private Long userId;
	private Long relationId;
	private String relation;
	private Timestamp addTime;
	private Date timeAdd;
	private UserInfoEnity userInfoEnity;
	public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	public Long getRelationId() {
		return relationId;
	}
	public void setRelationId(Long relationId) {
		this.relationId = relationId;
	}
	public String getRelation() {
		return relation;
	}
	public void setRelation(String relation) {
		this.relation = relation;
	}
	public Timestamp getAddTime() {
		return addTime;
	}
	public void setAddTime(Timestamp addTime) {
		this.addTime = addTime;
	}
	public Date getTimeAdd() {
		return timeAdd;
	}
	public void setTimeAdd(Date timeAdd) {
		this.timeAdd = timeAdd;
	}
	@Override
	public String toString() {
		return "UserRelationEntity [userId=" + userId + ", relationId=" + relationId + ", relation=" + relation
				+ ", addTime=" + addTime + ", timeAdd=" + timeAdd + ", userInfoEnity=" + (userInfoEnity==null?"":userInfoEnity.getNickname()) +":"+(userInfoEnity==null?"":userInfoEnity.getUserLogo())+ "]";
	}
	public UserInfoEnity getUserInfoEnity() {
		return userInfoEnity;
	}
	public void setUserInfoEnity(UserInfoEnity userInfoEnity) {
		this.userInfoEnity = userInfoEnity;
	}
	
	
}
